<template>
  <div style="height:100%;width:100%;position:relative;" ref="maindev">
      <div class="pagetop" ref="buttondiv" :style="pagetopstyle">
          <div style="width: 100%">
              <table>
                  <col style="width: 4%;" />
                  <col style="width: 4%;" />
                  <col style="width: 1%;" />
                  <col style="width: 4%;" />
                  <col style="width: 3%;" />

                  <col style="width: 4%;" />
                  <col style="width: 10%;" />

                  <col style="width: 4%;" />
                  <col style="width: 6%;" />
                  <col style="width: 2%;" />
                  <col style="width: 6%;" />

                  <col style="width: 5%;" />
                  <col style="width: 5%;" />

                  <col style="width: 39%;" />
                  <tr>
                      <td align="right">报告日期</td>
                      <td colspan="4">
                          <el-date-picker v-model="searchParam.startdt" type="date" placeholder="开始日期" value-format="yyyy-MM-dd" :clearable="false" style="min-width: 122px;width:47%"></el-date-picker> 至
                          <el-date-picker v-model="searchParam.enddt" type="date" placeholder="结束日期" value-format="yyyy-MM-dd" :clearable="false" style="min-width: 122px;width:47%"></el-date-picker>
                      </td>
                      <td>报告单元</td>
                      <td>
                          <rm-ddl-rptunit prgno="LIS610" v-model="searchParam.rptunitid" width="100%" defaultflag="1" clearable @change="rptunitChange"></rm-ddl-rptunit>
                      </td>
                      <td>查询模板</td>
                      <td>
                          <el-select v-model="querymod" placeholder="" @change="querymodChange($event)" clearable filterable>
                              <el-option v-for="(item,index) in querymodOption" :key="index" :value="item.value" :label="item.label"></el-option>
                          </el-select>
                      </td>
                      <td colspan="2" style="text-align:center">
                          <el-button @click.native="btnSavequerymod" style="background-color:#e6e6e6;width:50px;color:black">保存</el-button>
                          <el-button @click.native="btnDelquerymod" style="background-color:#e6e6e6;width:50px;color:black">删除</el-button>
                      </td>

                      <td colspan="2">
                          <el-checkbox v-model="searchParam.autoref" @focus="Focus($event)" true-label="1" false-label="0">按项目自动填写参考范围</el-checkbox>
                      </td>
                  </tr>
                  <tr>
                      <td>仪器</td>
                      <td colspan="4">
                          <rm-ddl-instrument width="100%" v-model="searchParam.instrid" prgno="LIS662" :clearable="true" @change="instrChange"></rm-ddl-instrument>
                      </td>
                      <td style="color: #fd5645;font-weight: 600;">项目1</td>
                      <td>
                          <rm-ddl-rptitem prgno="LIS610" :germmode="false" v-model="searchParam.rpt_itemcode1" width="180px" :appendtobody="true" :rptunitid="searchParam.rptunitid" @change="getref(arguments, 'rpt_itemcode1')"></rm-ddl-rptitem>
                      </td>
                      <td align="right">检验结果</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_min1" style="width:100%;min-width:90px" @focus="Focus($event)"></el-input>
                      </td>
                      <td style="color:#606266;text-align:center">——</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_max1" style="width:100%;min-width:90px" @focus="Focus($event)"></el-input>
                      </td>
                      <td colspan="2" style="text-align:left">
                          <el-checkbox v-model="searchParam.result_outflag" @focus="Focus($event)" true-label="1" false-label="0">显示正常结果</el-checkbox>
                      </td>
                      <td>&nbsp;</td>
                  </tr>
                  <tr>
                      <td>病人类型</td>
                      <td colspan="2">
                          <p style="float:left;width:calc(100% - 30px)">
                              <rm-ddl-common ref="txtpattype" datatype="seccode" kindno="PT" dataname="" v-model="searchParam.pat_typecode" width="100%" :readonly="true" :clearable="true" @change="pattypeChange"></rm-ddl-common>
                          </p>
                          <p style="float:right;height:100%;inline-height: initial; line-height: 25px;">组数</p>
                      </td>
                      <td>
                          <el-select v-model="searchParam.bank" size="mini" style="width:100%" filterable allow-create @change="ClsData">
                              <el-option v-for="(item,index) in bankOption" :key="index" :label="item.value" :value="item.value"></el-option>
                          </el-select>
                          <!-- <el-input v-model="searchParam.bank" style="width:100%" @focus="Focus($event)"></el-input> -->
                      </td>
                      <td>
                          <el-select v-model="searchParam.banktype" size="mini" style="width:100%" filterable @change="ClsData">
                              <el-option v-for="(item,index) in banktypeOption" :key="index" :label="item.label" :value="item.value"></el-option>
                          </el-select>
                      </td>
                      <td style="color: #fd5645;font-weight: 600;text-align:right">项目2</td>
                      <td>
                          <rm-ddl-rptitem prgno="LIS610" :germmode="false" v-model="searchParam.rpt_itemcode2" width="100%" :appendtobody="true" :rptunitid="searchParam.rptunitid" @change="getref(arguments, 'rpt_itemcode2')"></rm-ddl-rptitem>
                      </td>
                      <td align="right">检验结果</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_min2" style="width:100%" @focus="Focus($event)"></el-input>
                      </td>
                      <td style="color:#606266;text-align:center">——</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_max2" style="width:100%" @focus="Focus($event)"></el-input>
                      </td>
                      <td colspan="2" style="text-align:left">
                          <el-checkbox v-model="searchParam.issd" @focus="Focus($event)" true-label="1" false-label="0">按计算的SD系数画图</el-checkbox>
                      </td>
                  </tr>
                  <tr>
                      <td>申请科室</td>
                      <td colspan="4">
                          <rm-ddl-common datatype="dept" dataname="科室" v-model="searchParam.req_deptno" width="100%" @change="reqdeptChange"></rm-ddl-common>
                      </td>
                      <td style="color: #fd5645;font-weight: 600;">项目3</td>
                      <td>
                          <rm-ddl-rptitem prgno="LIS610" :germmode="false" v-model="searchParam.rpt_itemcode3" width="100%" :appendtobody="true" :rptunitid="searchParam.rptunitid" @change="getref(arguments, 'rpt_itemcode3')"></rm-ddl-rptitem>
                      </td>
                      <td align="right">检验结果</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_min3" style="width:100%" @focus="Focus($event)"></el-input>
                      </td>
                      <td style="color:#606266;text-align:center">——</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_max3" style="width:100%" @focus="Focus($event)"></el-input>
                      </td>
                      <td colspan="2" style="text-align:left">
                          <!-- <el-checkbox v-model="searchParam.isoresult" @focus="Focus($event)" true-label="1" false-label="0">按原始数值结果统计</el-checkbox> -->
                      </td>
                  </tr>
                  <tr>
                      <td>性别
                      </td>
                      <td colspan="2">
                          <p style="float:left;width:calc(100% - 55px)">
                              <el-select v-model="searchParam.pat_sex" placeholder="请选择" style="width:100%">
                                  <el-option key="0" label="全部" value="0"></el-option>
                                  <el-option key="1" label="男" value="1"></el-option>
                                  <el-option key="2" label="女" value="2"></el-option>
                              </el-select>
                          </p>
                          <p style="float:right;height:100%;inline-height: initial; line-height: 25px;">样本类型</p>
                      </td>
                      <td colspan="2">
                          <rm-ddl-common ref="ddlspecimen" datatype="specimen" dataname="样本类型" v-model="searchParam.specimen_code" width="100%" @change="specimenChange"></rm-ddl-common>
                      </td>
                      <td style="color: #fd5645;font-weight: 600;text-align: right;">项目4</td>
                      <td>
                          <rm-ddl-rptitem prgno="LIS610" :germmode="false" v-model="searchParam.rpt_itemcode4" width="100%" :appendtobody="true" :rptunitid="searchParam.rptunitid" @change="getref(arguments, 'rpt_itemcode4')"></rm-ddl-rptitem>
                      </td>
                      <td align="right" style="text-align:right">检验结果</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_min4" style="width:100%" @focus="Focus($event)"></el-input>
                      </td>
                      <td style="color:#606266; text-align:center">——</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_max4" style="width:100%" @focus="Focus($event)"></el-input>
                      </td>
                      <td colspan="2">
                          &nbsp;
                      </td>
                  </tr>
                  <tr>
                      <td align="right">年龄</td>
                      <td colspan="4">
                          <el-input size="small" style="width:118px" v-model="searchParam.agemin" oninput="value=value.replace(/[^\-?\d.]/g,'')" @focus="Focus($event)"></el-input>——
                          <el-input size="small" style="width:118px" v-model="searchParam.agemax" oninput="value=value.replace(/[^\-?\d.]/g,'')" @focus="Focus($event)"></el-input>
                      </td>
                      <td style="color: #fd5645;font-weight: 600;">项目5</td>
                      <td>
                          <rm-ddl-rptitem prgno="LIS610" :germmode="false" v-model="searchParam.rpt_itemcode5" width="100%" :appendtobody="true" :rptunitid="searchParam.rptunitid" @change="getref(arguments, 'rpt_itemcode5')"></rm-ddl-rptitem>
                      </td>
                      <td align="right">检验结果</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_min5" style="width:100%" @focus="Focus($event)"></el-input>
                      </td>
                      <td style="color:#606266;text-align:center">——</td>
                      <td style="text-align:left">
                          <el-input v-model="searchParam.result_max5" style="width:100%" @focus="Focus($event)"></el-input>
                      </td>
                      <td colspan="2">
                          动态均值使用中位数<el-input v-model="searchParam.pct" style="width:50px" @focus="Focus($event)"></el-input>%
                      </td>
                  </tr>
              </table>
              <div style="width:100%;text-align:right;padding-right:5px;padding-bottom:3px">
                  <el-button icon="el-icon-search" type="primary" @click="btnQuery" v-has="'PINQUERY'">查询</el-button>
                  <el-button @click.native="BtnClear" class="el-icon-refresh-left">清除</el-button>
                  <el-button icon="el-icon-download" @click="statExport" v-has="'PEXPORT'">导出统计数据</el-button>
                  <el-button icon="el-icon-download" @click="bankExport" v-has="'PEXPORT'">导出动态均值</el-button>
                  <!-- <el-button icon="el-icon-edit-outline" @click="btnHelp()">使用方法</el-button> -->
                  <!-- <el-button icon="el-icon-upload2" @click="btnCalculate">导出</el-button> -->
                  <!-- <el-button icon="el-icon-printer" @click="btnCalculate">打印</el-button> -->
                  <el-button icon="el-icon-close" type="warning" @click="btnExc">退出</el-button>
              </div>
          </div>
      </div>
      <div class="pagecenter" :style="pagecenter">
          <!-- <div class="middle-center" ref="xTableDiv"> -->
          <rm-layout-left splitcolor="#ffffff" :splitwidth="2" :fixsize="520" :minfixsize="520" :maxfixsize="520" ref="layoutright" :canDrag="false">
              <template v-slot:fix>
                  <el-tabs style="height:100%;" type="border-card" v-model="tabModel" @tab-click="tabClick">
                      <el-tab-pane label="数据" name="data">
                          <vxe-table ref="xTable" :data="tableData" :loading="loading" :keyboard-config="keyConfig" :keyboard-local-config="keyLocalConfig" :select-config="selectConfig" :sort-config="{trigger: 'cell'}" :edit-config="{trigger: 'click', mode: 'cell'}" border fit height="auto" header-align="center" resizable show-header-overflow="tooltip" show-overflow="tooltip" size="mini" stripe :cell-class-name="cellClassName" @current-change="currentChangeEvent" highlight-current-row show-footer :key="datakey">
                              <vxe-table-column field="itemcode_en" sortable title="英文缩写" width="70" show-overflow></vxe-table-column>
                              <vxe-table-column align="center" field="sampledate" sortable title="样本日期" width="100" :formatter="['toDateString', 'yyyy-MM-dd']" show-overflow></vxe-table-column>
                              <vxe-table-column field="sampleno" title="样本号" width="70" header-align="center">
                              </vxe-table-column>
                              <vxe-table-column field="rpt_itemname" sortable title="检验项目" width="110" show-overflow></vxe-table-column>
                              <vxe-table-column field="result_str" sortable title="检验结果" width="80" show-overflow> <template v-slot="{ row }">
                                      <div :style="{
                          background: row.cp_resultbackgroundcolor,
                          color: row.cp_resultcolor
                        }" style="padding:0px 10px">
                                          {{ row.result_str }}
                                      </div>
                                  </template></vxe-table-column>
                              <vxe-table-column field="rptunitname" title="报告单元" width="120" header-align="center" class="rowspantop"></vxe-table-column>
                              <vxe-table-column field="pat_name" sortable title="姓名" width="80" show-overflow></vxe-table-column>
                              <vxe-table-column field="pat_no" sortable title="病人号" width="100" show-overflow></vxe-table-column>
                              <vxe-table-column field="pat_sexname" sortable title="性别" width="50" show-overflow align=center></vxe-table-column>
                              <vxe-table-column field="pat_agestr" align="center" sortable title="年龄" width="40" show-overflow></vxe-table-column>
                              <vxe-table-column field="req_dept" sortable title="申请科室" width="150" show-overflow></vxe-table-column>
                              <vxe-table-column field="req_ward" sortable title="病人病区" width="120" show-overflow></vxe-table-column>
                              <vxe-table-column field="result_flag" align="center" sortable title="结果标志" width="60" show-overflow></vxe-table-column>
                              <vxe-table-column field="specimen_name" align="center" sortable title="样本类型" width="100" show-overflow></vxe-table-column>
                              <vxe-table-column field="result_flag" align="center" sortable title="原始数值结果" width="120" show-overflow></vxe-table-column>
                              <vxe-table-column field="req_bedno" align="center" sortable title="床号" width="70" show-overflow></vxe-table-column>
                              <vxe-table-column field="pat_typename" sortable title="病人类型" width="80" show-overflow></vxe-table-column>
                              <vxe-table-column field="create_dt" sortable title="创建时间" width="140" show-overflow></vxe-table-column>
                              <vxe-table-column field="barcode" sortable title="条码号" width="100" show-overflow></vxe-table-column>
                              <vxe-table-column field="req_doc" align="center" sortable title="申请医生" width="70" show-overflow></vxe-table-column>
                              <vxe-table-column field="pat_diag" sortable title="临床诊断" width="250" show-overflow></vxe-table-column>
                              <vxe-table-column field="report_user" align="center" sortable title="检验医生" width="70" show-overflow></vxe-table-column>
                              <vxe-table-column field="orig_result_num" sortable title="原始数值结果" width="150" show-overflow></vxe-table-column>
                              <vxe-table-column field="test_info" sortable title="上机信息" width="120" show-overflow></vxe-table-column>
                              <vxe-table-column field="rechk_dt" align="center" sortable title="审核时间" width="120" show-overflow></vxe-table-column>
                              <vxe-table-column field="rechk_user" align="center" sortable title="审核医生" width="60" show-overflow></vxe-table-column>
                              <vxe-table-column field="pat_idcardno" align="center" sortable title="身份证/护照号" width="200" show-overflow></vxe-table-column>
                              <vxe-table-column field="result_txt" sortable title="大文本结果" width="130" show-overflow></vxe-table-column>
                              <vxe-table-column field="report_comm" sortable title="报告单备注" width="150" show-overflow></vxe-table-column>
                              <vxe-table-column field="pat_id" sortable title="病人ID" width="100" show-overflow></vxe-table-column>
                              <vxe-table-column field="reportid" sortable title="报告ID" width="160" show-overflow></vxe-table-column>
                          </vxe-table>
                      </el-tab-pane>
                      <el-tab-pane label="动态均值" name="dai" style="overflow-y:auto">
                          <vxe-table ref="bankXTable" :data="bankData" :loading="loading" :keyboard-config="keyConfig" :keyboard-local-config="keyLocalConfig" :select-config="selectConfig" :sort-config="{trigger: 'cell'}" :edit-config="{trigger: 'click', mode: 'cell'}" border fit height="auto" header-align="center" resizable show-header-overflow="tooltip" show-overflow="tooltip" size="mini" stripe :row-class-name="daiRowClassName" :cell-class-name="cellClassName" @current-change="currentChangeEvent" show-footer :key="daikey">
                              <vxe-table-column field="itemcode_en" sortable title="英文缩写" width="60" show-overflow></vxe-table-column>
                              <vxe-table-column field="rpt_itemname" sortable title="检验项目" width="120" show-overflow></vxe-table-column>
                              <vxe-table-column align="center" field="sampledate" sortable title="样本日期(截止)" width="90" show-overflow></vxe-table-column>
                              <vxe-table-column field="samplecnt" title="样本数" width="50" header-align="center" align="right">
                              </vxe-table-column>
                              <vxe-table-column field="avg" sortable title="结果均值" width="70" show-overflow header-align="center" align="right"> </vxe-table-column>
                              <vxe-table-column field="coefficient" sortable title="计算SD系数" width="80" show-overflow header-align="center" align="right"> </vxe-table-column>
                              <vxe-table-column field="sd" sortable title="实际SD" width="60" show-overflow header-align="center" align="right"> </vxe-table-column>
                          </vxe-table>
                      </el-tab-pane>
                  </el-tabs>
              </template>
              <div style="width:100%;">
                  <!-- @change="WestFlagChange"  v-model="bWestσFlag" -->
                  <div class="tab-title">动态均值
                      <!-- <el-checkbox true-label="1" false-label="0" change="">显示均值</el-checkbox> -->
                      <!-- <el-tag style="margin:1.0 5px;height:23px;font-size:14px;line-height:23px;float:right">根据落点位置，选择质控规则。</el-tag> -->
                  </div>
              </div>
              <div style="width:100%;height:calc( 100% - 20px );border:1px solid #ccc">
                  <div id="LIS662Chart1" style="width: 100%; height: 100%; "></div>
              </div>
          </rm-layout-left>
          <!-- </div> -->
      </div>
      <el-dialog v-el-drag-dialog :append-to-body="true" :close-on-click-modal="false" title="请选择备注" :visible.sync="reportcommDlg">
          <rm-pop-common ref="popcom" @change="reportcommchange" @cancel="reportcommDlg=false;" kindno="reportcomm" datatype="seccode"></rm-pop-common>
      </el-dialog>
      <el-dialog width="1300px" height="450px" v-el-drag-dialog :append-to-body="true" :close-on-click-modal="false" title=" 学术统计 使用说明" :visible.sync="bHelpDlg">
          <div style="width:1250px;height:700px">
              <el-image style="width:100%;" :src="src"></el-image>
          </div>
      </el-dialog>
  </div>
</template>

<script>
import XE from "xe-utils"; //引入工具类
import echarts from "echarts"; //引入echarts
export default {
  name: "LIS662",
  data() {
      return {
          xData: [],
          src: require("@/assets/img/LIS/LIS6/LIS661.jpg"),
          pattypeOption: [],
          keyConfig: {
              isDel: true,
              isTab: true,
              isEdit: true,
          },
          keyLocalConfig: {
              isArrow: true,
          },
          selectConfig: {
              tigger: "row",
          },
          del1sd: 0,
          del2sd: 0,
          del3sd: 0,
          bCalcDlg: false,
          calcParam: {
              numarr: [],
              item: "",
              cnt: "",
              avg: "",
              sd: "",
              cv: "",
              min: "",
              max: "",
              mid: "",
              p0001: "",
              p0100: "",
              p0250: "",
              p0500: "",
              p1000: "",
              p2000: "",
              p2500: "",
              p7500: "",
              p8000: "",
              p9000: "",
              p9500: "",
              p9750: "",
              p9900: "",
              p9990: "",
          },
          querymod: "",
          searchParam: {
              //1
              startdt: XE.toDateString(new Date(), "yyyy-MM-dd"),
              enddt: XE.toDateString(new Date(), "yyyy-MM-dd"),
              autoref: "1",
              //2
              instrid: "",
              rpt_itemcode1: "",
              result_min1: "",
              result_max1: "",
              result_outflag: "",
              //3
              pat_typecode: "",
              bank: "20",
              banktype: "0",
              rpt_itemcode2: "",
              result_min2: "",
              result_max2: "",
              issd: "0",
              //4
              req_deptno: "",
              rpt_itemcode3: "",
              result_min3: "",
              result_max3: "",
              isoresult: "",
              //5
              pat_sex: "0",
              specimen_code: "",
              rpt_itemcode4: "",
              result_min4: "",
              result_max4: "",
              //6
              agemin: "",
              agemax: "",
              rpt_itemcode5: "",
              result_min5: "",
              result_max5: "",
              ispercent: "",
              pct: "",
          },
          numsdarr: [],
          macaddress: "",
          tableData: [],
          loading: false,
          selrow: {},
          selectall: false, 
          pagetopstyle: {
              position: "absolute",
              height: "225px",
              width: "100%",
          },
          pagecenter: {
              position: "absolute",
              top: "230px",
              bottom: "0px",
              overflow: "auto",
              width: "100%",
              left: "0px",
          },
          reportcommDlg: false, 
          reportheight: "auto",
          bHelpDlg: false,
          tabModel: "data",
          datakey: 0,
          daikey: 0,
          pointData: [],
          //!new
          querymodOption: [], //查询模版列表
          drawdt: 0,
          bankData: [],
          lineData: {
              idt1: [],
              idt2: [],
              idt3: [],
              idt4: [],
              idt5: [],
          },
          series: [],
          chartsna: [],
          bankOption: [
              {
                  label: "20",
                  value: "20",
              },
              {
                  label: "50",
                  value: "50",
              },
              {
                  label: "100",
                  value: "100",
              },
          ],
          banktypeOption: [
              {
                  label: "个",
                  value: "0",
              },
              // {
              //     label: "天",
              //     value: "1",
              // },
          ],
          rpt_itemcode1name: "",
          rpt_itemcode2name: "",
          rpt_itemcode3name: "",
          rpt_itemcode4name: "",
          rpt_itemcode5name: "",
          rptunitname: "",
          instrname: "",
          pattypename: "",
          reqdeptname: "",
          specimenname: "",
      };
  },
  mounted() {
      //抓缓存
      this.querymodOption = [];
      let modOption1 = localStorage.getItem("rm_Qmod_LIS662");
      let modOptions1 = JSON.parse(modOption1);
      if (modOptions1 != null) {
          this.querymodOption = XE.clone(modOptions1, true);
      }
      var echartsid = document.getElementById("LIS662Chart1");
      // this.stasticsmodOption = [];
      // let modOption2 = localStorage.getItem("rm_Smod_LIS412");
      // let modOptions2 = JSON.parse(modOption2);
      // if (modOptions2 != null) {
      //     this.stasticsmodOption = XE.clone(modOptions2, true);
      // }
      //画初始图
      this.charts = echarts.init(echartsid, "shine");
      this.$nextTick(() => {
          this.charts.resize({ width: this.autoWidth, height: this.autoHeight }); //窗口初始化时echart大小可自适应 ;
          this.Draw(); //初始化时画一个样子出来
      });
  },
  methods: {
      rptunitChange(code, name) {
          this.searchParam.rptunitid = code;
          this.rptunitname = name;
      },
      instrChange(code, name) {
          this.searchParam.instrid = code;
          this.instrname = name;
      },
      pattypeChange(code, name) {
          this.searchParam.pat_typecode = code;
          this.pattypename = name;
      },
      reqdeptChange(code, name) {
          this.searchParam.req_deptno = code;
          this.reqdeptname = name;
      },
      specimenChange(code, name) {
          this.searchParam.specimen_code = code;
          this.specimenname= name;
      },
      //导出动态均值
      statExport() {
          let extableColumn = [];
          let tableColumn = this.$refs.xTable.getColumns();
          tableColumn.forEach((item) => {
              extableColumn.push({ title: item.title, field: item.property });
          });
          let filtertxt = this.getExportFilter();
          this.$pub.exportTableExcel(this.tableData, extableColumn, "LIS622统计数据.xlsx", filtertxt, "统计条件：");
      },
      //导出主数据
      bankExport() {
          let extableColumn = [];
          let tableColumn = this.$refs.bankXTable.getColumns();
          tableColumn.forEach((item) => {
              extableColumn.push({ title: item.title, field: item.property });
          });
          let filtertxt = this.getExportFilter();
          this.$pub.exportTableExcel(this.bankData, extableColumn, "LIS622动态均值.xlsx", filtertxt, "统计条件：");
      },
      // 获取当前导出文件的所有查询条件
      getExportFilter() {
          let filtertxt = "报告日期:" + XE.toDateString(this.searchParam.startdt, "yyyy-MM-dd") + "至" + XE.toDateString(this.searchParam.enddt, "yyyy-MM-dd") + "; ";
          if(this.searchParam.rptunitid) filtertxt += "报告单元:" + this.rptunitname+ "; ";
          if(this.querymod) filtertxt += "查询模板:" + this.getOptionName(this.querymodOption.filter((item) =>  this.querymod == item.value))+ "; ";
          if(this.searchParam.instrid) filtertxt += "仪器:" + this.instrname + "; ";
          if(this.searchParam.pat_typecode) filtertxt += "病人类型:" + this.pattypename+ "; ";
          filtertxt += "组数:" + this.searchParam.bank + this.getOptionName(this.banktypeOption.filter((item) =>  this.searchParam.banktype == item.value)) +"; ";
          if(this.searchParam.req_deptno)  filtertxt += "申请科室:" + this.reqdeptname + "; ";
          if (this.searchParam.pat_sex) filtertxt += "性别:" + (this.searchParam.pat_sex == "1" ? "男" : this.searchParam.pat_sex == "2" ? "女" : "全部") + "; ";
          if(this.searchParam.specimen_code) filtertxt += "样本类型:" + this.specimenname+ "; ";
          if(this.searchParam.agemin || this.searchParam.agemax)  filtertxt += "年龄:" + this.searchParam.agemin + "至" + this.searchParam.agemax+ "; ";
          if(this.searchParam.autoref == "1") filtertxt += "按项目自动填写参考范围; ";
          if(this.searchParam.result_outflag == "1") filtertxt += "显示正常结果; ";
          if(this.searchParam.issd == "1") filtertxt += "按计算的SD系数画图; ";
          if(this.searchParam.pct)  filtertxt += "动态均值使用中位数:" + this.searchParam.pct + "%; ";
          if(this.searchParam.rpt_itemcode1) filtertxt += "项目1:" + this.rpt_itemcode1name + "; ";
          if(this.searchParam.result_min1 || this.searchParam.result_max1)  filtertxt += "检验结果1:" + this.searchParam.result_min1 + "至" + this.searchParam.result_max1+ "; ";
          if(this.searchParam.rpt_itemcode2) filtertxt += "项目2:" + this.rpt_itemcode2name + "; ";
          if(this.searchParam.result_min2 || this.searchParam.result_max2)  filtertxt += "检验结果2:" + this.searchParam.result_min2 + "至" + this.searchParam.result_max2+ "; ";
          if(this.searchParam.rpt_itemcode3) filtertxt += "项目3:" + this.rpt_itemcode3name + "; ";
          if(this.searchParam.result_min3 || this.searchParam.result_max3)  filtertxt += "检验结果3:" + this.searchParam.result_min3 + "至" + this.searchParam.result_max3+ "; ";
          if(this.searchParam.rpt_itemcode4) filtertxt += "项目4:" + this.rpt_itemcode4name + "; ";
          if(this.searchParam.result_min4 || this.searchParam.result_max4)  filtertxt += "检验结果4:" + this.searchParam.result_min4 + "至" + this.searchParam.result_max4+ "; ";
          if(this.searchParam.rpt_itemcode5) filtertxt += "项目5:" + this.rpt_itemcode5name + "; ";
          if(this.searchParam.result_min5 || this.searchParam.result_max5)  filtertxt += "检验结果5:" + this.searchParam.result_min5 + "至" + this.searchParam.result_max5+ "; ";
          return filtertxt;
      },
      getOptionName(option) {
          if (option && option.length > 0) {
              let optionname = "";
              option.forEach((item) => {
                  if(item.hasOwnProperty("display")) {
                      optionname += item.display + ",";
                  } else {
                      optionname += item.label + ",";
                  }
              });
              return optionname.substring(0, optionname.length - 1);
          } else {
              return "";
          }
      },
      //查询条件清空
      BtnClear() {
          this.tableData = []; //cls查询主表
          this.bankData = []; //cls查询动态均值
          this.querymod = ""; //cls查询模板
          this.rptunitname = "";
          this.instrname = "";
          this.pattypename = "";
          this.reqdeptname = "";
          this.specimenname = "";
          this.rpt_itemcode1name = "";
          this.rpt_itemcode2name = "";
          this.rpt_itemcode3name = "";
          this.rpt_itemcode4name = "";
          this.rpt_itemcode5name = "";
          this.searchParam = {
              //cls查询条件
              //1
              startdt: XE.toDateString(new Date(), "yyyy-MM-dd"),
              enddt: XE.toDateString(new Date(), "yyyy-MM-dd"),
              autoref: "1",
              rptunitid: "1",
              //2
              instrid: "",
              rpt_itemcode1: "",
              result_min1: "",
              result_max1: "",
              result_outflag: "",
              //3
              pat_typecode: "",
              bank: "20",
              banktype: "0",
              rpt_itemcode2: "",
              result_min2: "",
              result_max2: "",
              issd: "0",
              //4
              req_deptno: "",
              rpt_itemcode3: "",
              result_min3: "",
              result_max3: "",
              isoresult: "",
              //5
              pat_sex: "0",
              specimen_code: "",
              rpt_itemcode4: "",
              result_min4: "",
              result_max4: "",
              //6
              agemin: "",
              agemax: "",
              rpt_itemcode5: "",
              result_min5: "",
              result_max5: "",
              ispercent: "",
              pct: "",
          };
      },
      //获取参考值区间
      getref(item, rpt_itemcode) {
          console.log(item);
          this.searchParam[rpt_itemcode] = item[0];
          this[rpt_itemcode + "name"] = item[1];
          if (this.searchParam.autoref == "1") {
              this.getResultArea(this.searchParam[rpt_itemcode], rpt_itemcode);
          }
      },
      //获取参考值区间范围
      async getResultArea(rpt_itemcode, itemna) {
          try {
              const res = await this.$tool.request({
                  url: "LIS/LIS6/LIS662",
                  method: "post",
                  data: {
                      action: "get_resultarea",
                      rpt_itemcode: rpt_itemcode,
                  },
              });
              this.searchParam[itemna.replace("rpt_itemcode", "result_min")] = res[0].ref_l;
              this.searchParam[itemna.replace("rpt_itemcode", "result_max")] = res[0].ref_h;
          } catch (e) {
              this.$message.warning(e);
          }
      },
      //修改查询条件清空表格数据
      ClsData() {
          this.tableData = [];
          this.bankData = [];
          this.charts.clear();
          // this.$refs.rawXTable.loadData(this.rawData);
          this.datakey++;
          this.daikey++;
      },
      //todo 查询模版选择 这个需要再改
      querymodChange(value) {
          let modList = localStorage.getItem("rm_Qmod_LIS662");
          let tempOption = JSON.parse(modList);
          this.querymodOption = tempOption;
          let obj = localStorage.getItem("rm_Qmod_LIS662_" + value);
          let jsondate = JSON.parse(obj);
          this.rptunitname = jsondate.rptunitname;
          this.instrname = jsondate.instrname;
          this.pattypename = jsondate.pattypename;
          this.reqdeptname = jsondate.reqdeptname;
          this.specimenname = jsondate.specimenname;
          this.rpt_itemcode1name = jsondate.rpt_itemcode1name;
          this.rpt_itemcode2name = jsondate.rpt_itemcode2name;
          this.rpt_itemcode3name = jsondate.rpt_itemcode3name;
          this.rpt_itemcode4name = jsondate.rpt_itemcode4name;
          this.rpt_itemcode5name = jsondate.rpt_itemcode5name;
          this.searchParam = {
              startdt: jsondate.startdt,
              enddt: jsondate.enddt,
              rptunitid: jsondate.rptunitid,
              autoref: jsondate.autoref,
              //2
              instrid: jsondate.instrid,
              rpt_itemcode1: jsondate.rpt_itemcode1,
              result_min1: jsondate.result_min1,
              result_max1: jsondate.result_max1,
              result_outflag: jsondate.result_outflag,
              //3
              pat_typecode: jsondate.pat_typecode,
              bank: jsondate.bank,
              banktype: jsondate.banktype,
              rpt_itemcode2: jsondate.rpt_itemcode2,
              result_min2: jsondate.result_min2,
              result_max2: jsondate.result_max2,
              issd: jsondate.issd,
              //4
              req_deptno: jsondate.req_deptno,
              rpt_itemcode3: jsondate.rpt_itemcode3,
              result_min3: jsondate.result_min3,
              result_max3: jsondate.result_max3,
              isoresult: jsondate.isoresult,
              //5
              pat_sex: jsondate.pat_sex,
              specimen_code: jsondate.specimen_code,
              rpt_itemcode4: jsondate.rpt_itemcode4,
              result_min4: jsondate.result_min4,
              result_max4: jsondate.result_max4,
              //6
              agemin: jsondate.agemin,
              agemax: jsondate.agemax,
              rpt_itemcode5: jsondate.rpt_itemcode5,
              result_min5: jsondate.result_min5,
              result_max5: jsondate.result_max5,
              ispercent: jsondate.ispercent,
              pct: jsondate.pct,
          };
      },
      //查询模版保存
      btnSavequerymod() {
          let jsondate = this.searchParam;
          jsondate.rptunitname = this.rptunitname;
          jsondate.instrname = this.instrname;
          jsondate.pattypename = this.pattypename;
          jsondate.reqdeptname = this.reqdeptname;
          jsondate.specimenname = this.specimenname;
          jsondate.rpt_itemcode1name = this.rpt_itemcode1name;
          jsondate.rpt_itemcode2name = this.rpt_itemcode2name;
          jsondate.rpt_itemcode3name = this.rpt_itemcode3name;
          jsondate.rpt_itemcode4name = this.rpt_itemcode4name;
          jsondate.rpt_itemcode5name = this.rpt_itemcode5name;
          this.$prompt("查询模版保存名称", "文字编辑", {
              confirmButtonText: "确定",
              cancelButtonText: "取消",
          })
              .then(({ value }) => {
                  if (value && value.trim() != "") {
                      this.querymodOption = [];
                      let modOption = localStorage.getItem("rm_Qmod_LIS662");
                      let modOptions = JSON.parse(modOption);
                      let item = undefined;
                      if (modOptions != null) {
                          this.querymodOption = XE.clone(modOptions, true);
                          item = modOptions.find((m) => m.value == value);
                      }
                      if (item != undefined) {
                      } else {
                          this.querymodOption.push({
                              label: value,
                              value: value,
                          });
                      }
                      let modListJson = JSON.stringify(jsondate);
                      let modList = JSON.stringify(this.querymodOption);
                      localStorage.setItem("rm_Qmod_LIS662_" + value, modListJson);
                      localStorage.setItem("rm_Qmod_LIS662", modList);
                      this.querymod = value;
                  }
              })
              .catch(() => {
                  this.$message({
                      type: "info",
                      message: "取消输入",
                  });
              });
      },
      //查询模版删除
      btnDelquerymod() {
          this.$confirm("您确定删除查询模版：" + this.querymod + "吗？", {
              confirmButtonText: "确定",
              cancelButtonText: "取消",
              type: "warning",
          })
              .then(() => {
                  let value = this.querymod;
                  localStorage.removeItem("rm_Qmod_LIS662_" + value);
                  let modList = localStorage.getItem("rm_Qmod_LIS662");
                  let jsondate = JSON.parse(modList);
                  this.querymodOption = [];
                  jsondate.forEach((item) => {
                      if (item.value == value) {
                      } else {
                          this.querymodOption.push(item);
                      }
                  });
                  let newmodList = JSON.stringify(this.querymodOption);
                  localStorage.setItem("rm_Qmod_LIS662", newmodList);
                  this.querymod = "";
              })
              .catch(() => {});
      },
      tabClick(tab, event) {
          if (tab.label == "数据") {
              // this.datakey++;
          }
          if (tab.label == "动态均值") {
              this.daikey++;
          }
      },
      Draw() {
          this.charts.clear();
          this.charts.setOption({
              animationDuration: 1000,
              tooltip: {
                  trigger: "axis",
              },
              legend: {
                  data: this.chartsna,
                  textStyle: {
                      fontSize: 14,
                  },
                  left: "4%",
              },
              toolbox: {
                  show: true,
                  feature: {
                      magicType: { show: true, type: ["stack", "tiled"] },
                      saveAsImage: { show: true },
                  },
              },
              xAxis: {
                  type: "category",
                  boundaryGap: false,
                  data: this.xData,
              },
              yAxis: {
                  type: "value",
              },
              series: this.series,
              //       [
              //     {
              //         name: "成交",
              //         type: "line",
              //
              //         data: ["210", "212"],
              //     },
              //                      {
              //         name: "成交2",
              //         type: "line",
              //
              //         data: ["310", "212"],
              //     },
              // ],
              //  this.series,

              // title: {
              //     text: "标准化西格玛性能验证图",
              //     textStyle: {
              //         fontSize: 23
              //     },
              //     left: "center",
              //     top: 5
              // },
              // grid: [{ width: "85%", height: "80%" }],
              // tooltip: {
              //     // formatter: "Group {a}: ({c})",
              //     formatter: function(params, ticket, callback) {
              //         var name = params.data.name;
              //         var pos = "&nbsp;" + params.data.pos;
              //         var σlevel = "<br/>σ：" + params.data.σlevel;
              //         var performance = "&nbsp;(" + params.data.performance + ")";
              //         var westgardrules = "";
              //         params.data.westgardrules == "" ? (westgardrules = "") : (westgardrules = "<br/>质控规则：" + params.data.westgardrules);
              //         var label = name + pos + σlevel + performance + westgardrules;
              //         // var na = params.data.name + params.data.pos;
              //         return label;
              //     }
              // },
              // xAxis: [
              //     {
              //         gridIndex: 0,
              //         min: 0,
              //         max: 50,
              //         name: "不精密度(CV/TEa)",
              //         nameTextStyle: {
              //             fontSize: 18,
              //             fontWeight: 700,
              //             padding: [12, 0, 0, 0] // 四个数字分别为上右下左与原位置距离
              //         },
              //         axisLabel: {
              //             show: true,
              //             interval: 3
              //         },
              //         splitNumber: 10,
              //         axisTick: {
              //             interval: 1
              //         },
              //         nameLocation: "center"
              //     }
              // ],
              // yAxis: [
              //     {
              //         gridIndex: 0,
              //         min: 0,
              //         max: 100,
              //         name: "偏倚(Bias/TEa)",
              //         nameTextStyle: {
              //             fontSize: 18,
              //             fontWeight: 700,
              //             padding: [0, 0, 15, 0] // 四个数字分别为上右下左与原位置距离
              //         },
              //         splitNumber: 10,
              //         axisTick: {
              //             interval: 1
              //         },
              //         nameLocation: "center"
              //     }
              // ],
              // series: [
              //     {
              //         name: "I",
              //         type: "scatter",
              //         xAxisIndex: 0,
              //         yAxisIndex: 0,
              //         data: this.pointData,
              //         markLine: markLineOpt,
              //         itemStyle: {
              //             normal: {
              //                 label: {
              //                     show: this.bShowrpt_itemname == "1" ? true : false,
              //                     position: "top",
              //                     formatter: function(params, ticket, callback) {
              //                         var labelname = params.name;
              //                         return labelname;
              //                     }
              //                     //formatter: ["Label Text"].join("\n"),
              //                 }
              //             }
              //         }
              //     }
              // ]
          });
      },
      btnHelp() {
          this.bHelpDlg = true;
      },
      Focus(event) {
          event.currentTarget.select();
      },
      reportcommchange(c, v) {
          this.searchParam.report_comm = v;
          this.reportcommDlg = false;
      },
      BtnExport() {
          if (this.calcParam.numarr.length > 0) {
              let rloading = this.$pub.openLoading(this, "开始导出数据，请稍等！");
              let filestr = "";
              filestr += "项目：" + this.calcParam.item + ",";
              if (this.del1sd > 0) {
                  filestr += "剔除大于1SD次数：" + this.del1sd + ",";
              }
              if (this.del2sd > 0) {
                  filestr += "剔除大于2SD次数：" + this.del3sd + ",";
              }
              if (this.del3sd > 0) {
                  filestr += "剔除大于3SD次数：" + this.del3sd + ",";
              }
              filestr += "个数：" + this.calcParam.cnt + ",";
              filestr += "结果列表：";
              this.calcParam.numarr.forEach((e) => {
                  filestr += e + ",";
              });
              filestr += "均值：" + this.calcParam.avg + ",";
              filestr += "中位数：" + this.calcParam.mid + ",";
              filestr += "SD：" + this.calcParam.sd + ",";
              filestr += "CV：" + this.calcParam.cv + ",";
              filestr += "最小：" + this.calcParam.min + ",";
              filestr += "最大：" + this.calcParam.max + ",";
              filestr += "统计时间：" + XE.toDateString(new Date(), "yyyy-MM-dd HH:ss");
              let filename = "LIS611" + this.searchParam.startdt + "_" + this.searchParam.enddt + "_" + this.searchParam.rpt_itemcode;
              let p = { prgno: "LIS662", filename: filename, filestr: filestr };
              this.$pub.commexport(this, p, filename + ".txt", "text/html;charset=gb2312");
              rloading.close();
          } else {
              this.$alert("请选择需要导出的数据！", "提示");
          }
      },

      //全选/取消
      ChkAll(e) {
          if (this.tableData != null && this.tableData.length > 0) {
              this.tableData.forEach((item) => {
                  item.cp_selection = this.selectall == true ? "1" : "0";
              });
          }
      },
      TmpRClassName(row, column) {
          var stylestr = "padding:0 3px;";
          var nna = column.property.replace("col", "bgc");
          stylestr += "color:" + row[nna];
          return stylestr;
      },
      ChkEven(row) {
          row.cp_selection == "0" ? "1" : "0";
      },
      //选择正常
      bTNcheckNormal() {
          this.tableData.forEach((e) => {
              e.cp_selection = "0";
              if (!["E", "Q", "P", "L", "H", "I"].includes(e.result_flag)) {
                  e.cp_selection = "1";
              }
          });
      },
      btnCalculate(flag) {
          if (flag == 0) {
              this.del1sd = 0;
              this.del2sd = 0;
              this.del3sd = 0;
              this.bCalcDlg = true;
              var numarr = [];
              //获取勾选结果数值
              for (var i = 0; i < this.tableData.length; i++) {
                  if (this.tableData[i].cp_selection == "1" && !XE.isNull(this.tableData[i].result_num) && this.tableData[i].result_num != "") {
                      numarr.push(parseFloat(this.tableData[i].result_num));
                  }
              }
              this.Calculate(numarr);
          } else {
              this["del" + flag + "sd"]++;
              if (this.calcParam.numarr.length > 0) {
                  var newarr = [];
                  this.numsdarr.forEach((e) => {
                      if (flag == 1 && e.sd <= 1) {
                          newarr.push(e.result);
                      } else if (flag == 2 && e.sd <= 2) {
                          newarr.push(e.result);
                      } else if (flag == 3 && e.sd <= 3) {
                          newarr.push(e.result);
                      }
                  });
                  this.Calculate(newarr);
              }
          }
      },
      getnum(type, arr = [], cnt = 0, x1 = "", x2 = "", x3 = "") {
          //type:mid,arrx:计算公式所需数值
          if (arr.length > 0 && cnt > 0) {
              //基于有数据才可以计算
              if (type == "percent" && x1 != "") {
                  var tempnum = cnt * x1 * 0.01;
                  var index = XE.toInteger(tempnum);
                  if (index > cnt - 1) {
                      index = cnt - 1;
                  }
                  return arr[index];
              } else return -1;
          } else return -1;
      },
      //查询
      btnQuery() {
          var itemcnt = 0;
          for (var i = 0; i < 5; i++) {
              if (this.searchParam["rpt_itemcode" + (i + 1)] != "") {
                  itemcnt++;
              }
          }
          if (itemcnt == 0) {
              this.$alert("请您先选择报告项目。", "提示");
              return false;
          }
          this.daikey++;
          this.loading = true;
          this.$tool
              .request({
                  url: "LIS/LIS6/LIS662",
                  method: "post",
                  data: {
                      action: "query",
                      ...this.searchParam,
                      macaddress: this.macaddress,
                  },
              })
              .then((res) => {
                  if (res.dt.length > 0) {
                      this.tableData = res.dt;
                  } else {
                      this.tableData = [];
                  }
                  if (res.bankdt.length > 0) {
                      //存在线条
                      this.bankData = res.bankdt;
                      this.lineData = {
                          dt1: res.idt1,
                          dt2: res.idt2,
                          dt3: res.idt3,
                          dt4: res.idt4,
                          dt5: res.idt5,
                      };
                      this.xData = res.ystr.split(",");
                      //画线
                      this.series = [];
                      this.chartsna = [];
                      for (var i = 0; i < 5; i++) {
                          if (res["idt" + (i + 1)].length > 0) {
                              var data = [];
                              res["idt" + (i + 1)].forEach((e) => {
                                  if (this.searchParam.issd == "1") data.push(e.coefficient);
                                  else data.push(e.avg);
                              });
                              this.chartsna.push(res["idt" + (i + 1)][0].rpt_itemname);
                              var seriesitem = {
                                  name: res["idt" + (i + 1)][0].rpt_itemname,
                                  type: "line",
                                  endLabel: {
                                      show: true,
                                      formatter: function (params) {
                                          return params.value[5];
                                      },
                                  },
                                  data: data,
                              };
                              this.series.push(seriesitem);
                          }
                      }
                      this.Draw();
                  } else {
                      this.bankData = [];
                  }
                  this.loading = false;
                  this["load" + "ing"];
              })
              .catch((e) => {
                  this.loading = false;
              });
      },
      btnExc() {
          let index = this.$parent.$refs.itemtags.tagsList.findIndex((m) => m.name == "LIS662");
          this.$parent.$refs.itemtags.tagsList.splice(index, 1);
          this.$router.go(-1);
      },
      currentChangeEvent({ row }) {
          this.selrow = row;
      },
      format({ row, column, cellValue }) {
          if (column.property == "charge_flag") {
              if (cellValue == "0") {
                  return "未计价";
              } else if (cellValue == "1") {
                  return "已计价";
              } else if (cellValue == "8") {
                  return "等待退费";
              } else if (cellValue == "9") {
                  return "已退费";
              } else if (cellValue == "5") {
                  return "免费";
              } else {
                  return "";
              }
          } else if (column.property == "reqtype") {
              if (cellValue == "C") {
                  return "检验";
              } else {
                  return "输血";
              }
          } else if (column.property == "emer_flag") {
              if (cellValue == "1") {
                  return "急";
              } else {
                  return "";
              }
          }
      },
      rowClassName({ row, rowIndex }) {
          if (row.req_stat == "1") {
              return "req_stat1";
          } else if (row.req_stat == "2") {
              return "req_stat2";
          } else if (row.req_stat == "3") {
              return "req_stat3";
          } else if (row.req_stat == "4") {
              return "req_stat4";
          } else if (row.req_stat == "5") {
              return "req_stat5";
          } else if (row.req_stat == "6") {
              return "req_stat6";
          } else if (row.req_stat == "8") {
              return "req_stat8";
          } else if (row.req_stat == "9") {
              return "reqstat9";
          } else {
              return "";
          }
      },
      daiRowClassName({ row }) {
          if (row.samplecnt == "平均值") {
              return "row_amount";
          }
      },
      cellClassName({ column, row }) {
          if (column.property == "emer_flag") {
              if (row.emer_flag == "1") {
                  return "col-red";
              } else {
                  return "";
              }
          }
      },
  },
};
</script>

<style scoped>
::v-deep.vxe-input--wrapper .vxe-input {
  height: auto;
  width: 200px;
  border-radius: 0px;
}
::v-deep.el-button--default.btn-custom-cancel {
  float: right !important;
  margin-left: 10px;
}

.pagetop {
  left: 0;
  right: 0;
  height: 215px;
  display: -webkit-box;
  -webkit-box-pack: center;
  -webkit-box-align: center;
  border: solid 1px #ccc;
  position: absolute;
  z-index: 99;
  overflow-x: auto;
  white-space: nowrap;
}

.chargeflag {
  padding: 0px 10px;
}

.pagecenter {
  position: absolute;
  top: 134px;
  width: 100%;
  left: 0;
  bottom: 0px;
  overflow: auto;
}

.middle-center {
  position: absolute;
  height: 100%;
  right: 0;
  left: 0;
  height: 100%;
}

table tr td:nth-child(odd) {
  text-align: right;
  white-space: nowrap;
}
table tr td:nth-child(even) {
  text-align: left;
}
table {
  font-size: 12px;
  border-collapse: separate;
  border-spacing: 5px;
}
::v-deep.el-checkbox__inner::after {
  border: 2px solid #000000 !important;
  box-sizing: content-box;
  content: "";
  border-left: 0 !important;
  border-top: 0 !important;
  height: 7px;
  left: 4px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg) scaleY(0);
  width: 3px;
  transition: transform 0.15s ease-in 0.05s;
  transform-origin: center;
}
::v-deep.el-checkbox__input.is-disabled + span.el-checkbox__label {
  color: #000000;
  cursor: not-allowed;
}
::v-deep .el-checkbox__input.is-disabled .el-checkbox__inner,
.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner + .el-input.is-disabled .el-input__inner {
  background-color: #ffffff !important;
}
::v-deep.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 130px;
}
::v-deep .chargeflag .el-radio {
  margin-right: 10px !important;
}
::v-deep .chargeflag .el-radio__label {
  width: 35px;
  display: inline-block;
}
::v-deep .vxe-table .vxe-body--column.col-red {
  color: red;
}
::v-deep .vxe-table .vxe-body--column.sd1color {
  background-color: #8d6000af;
}
::v-deep .vxe-table .vxe-body--column.sd2color {
  background-color: rgb(25, 57, 201);
}
::v-deep .vxe-table .vxe-body--column.sd3color {
  background-color: rgb(240, 70, 48);
}
::v-deep .vxe-table .vxe-body--row.row--current {
  background-color: #b6e8ff !important;
}
::v-deep .middle-center .vxe-table {
  height: 100%;
}
::v-deep .middle-center .vxe-table--body-wrapper {
  /* height: calc(100% - 54px) !important; */
  height: 100%;
}
::v-deep .el-textarea__inner {
  background-color: #a3c1f429;
  padding: 3px 5px;
}
::v-deep .el-divider__text.is-left {
  padding-left: 3px;
  font-weight: bold;
  font-size: 16px;
  left: 0;
  color: #000;
  transform: translateY(-50%);
}
::v-deep .el-input__inner[ismh="1"] {
  /* background-color: #a3c1f429; */
}
::v-deep .ismh1 .el-input__inner {
  background-color: #a3c1f429;
}
/* new */
::v-deep .el-input--suffix .el-input__inner {
  padding-right: 5px;
}
::v-deep .vxe-table .vxe-body--row.row_amount {
  background-color: #0099ff !important;
  color: #f0f8ff;
}
::v-deep .el-tabs--border-card > .el-tabs__content {
  padding: 1px !important;
}
::v-deep .vxe-table .vxe-body--x-space {
  width: 100%;
  height: 1px;
  margin-bottom: 0 px;
}
.tab-title {
  margin: 0;
  font-size: 14px;
  height: 20px;
  /* margin: 0 1px 0 3px; */
  padding: 0 1px 0 3px;
  font-weight: 600;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
</style>